<?php
/**
 * Created by PhpStorm.
 * Author: ls
 * Time: 2023/9/11 11:58
 * Desc:
 */

abstract class Contract_Api_Fenxiao
{


    /**
     * 获取分销预估金额
     * @param $typeid
     * @param $user_id
     * @param $product_id
     * @return string
     * User: netman
     * Date: 2023/9/11 16:56
     */
    abstract function get_estimate_profit($typeid, $user_id, $product_id, $product_price): string;

    /**
     * 获取当前会员的分销商信息
     * @param $mid
     * @param $member
     * @return mixed
     * User: netman
     * Date: 2023/9/20 17:02
     */
    abstract function info($mid, $member);

    /**
     *  检查用户是否是分销商,如果传了产品则同时检查产品是否是分销状态
     * @param $params
     * @return mixed
     * User: netman
     * Date: 2023/9/20 17:08
     */
    abstract function is_distributor($params);

    /**
     * 获取分销商的普通客户
     * @param $params
     * @return mixed
     * User: netman
     * Date: 2023/9/20 17:51
     */
    abstract function get_customer($params);

    /**
     * 获取下级分销商列表
     * @param $params
     * @return mixed
     * User: netman
     * Date: 2023/9/20 17:52
     */
    abstract function get_subfx($params);

    //获取分销等级
    abstract function get_level();

    /**
     * 成为分销商
     * @param $params
     * @return mixed
     * User: netman
     * Date: 2023/9/20 17:54
     */
    abstract function add_us($params);

    /**
     * 获取待分销产品
     * @param $params
     * @return mixed
     * User: netman
     * Date: 2023/9/20 17:54
     */
    abstract function get_product($params);

    /**
     * 获取分销订单佣金明细
     * @param $params
     * @return mixed
     * User: netman
     * Date: 2023/9/20 17:55
     */
    abstract function get_order($params);

    /**
     * 获取分销海报
     * @param $params
     * @return mixed
     * User: netman
     * Date: 2023/9/20 17:56
     */
    abstract function get_distribution_poster($params);

    /**
     * 获得佣金明细查询条件
     * @return mixed
     * User: netman
     * Date: 2023/9/21 9:34
     */
    abstract function get_order_condition();

    /**
     * 获得推广商品查询条件
     * @return mixed
     * User: netman
     * Date: 2023/9/21 9:34
     */
    abstract function get_product_condition();

    /**
     * 获取分销商邀请海报
     * @param $params
     * @return mixed
     * User: netman
     * Date: 2023/9/21 9:34
     */
    abstract function get_invite_image($params);

    /**
     * 获取分销商相关配置说明
     * @return mixed
     * User: netman
     * Date: 2023/9/21 9:34
     */
    abstract function get_fenxiao_config($fields);



    /**
     * 获取分享数据
     * @param $params
     * @return mixed
     * User: netman
     * Date: 2023/9/21 9:29
     */
    abstract function get_link($params);

    /**
     * 获得店铺分销二维码
     * @return mixed
     * User: netman
     * Date: 2023/9/21 9:27
     */
    abstract function get_shop_code($params);




}